<script type="text/javascript" xmlns:e="http://www.w3.org/1999/html">
    AppComm.include.load("#url('/static/js/user/userManagement.js')", "js");
    AppComm.include.load("#url('/static/js/common/commonImageUpload.js')", "js");
</script>
<script type="text/javascript" src="#url('/static/comm/ECharts/gallery/echarts-all-3.js')"></script>
<div class="layui-tab-item layui-show">
    <div style="text-align: left;">
        <span class="layui-breadcrumb">
                <a href="">系统管理</a>
                <a><cite>用户管理</cite></a>
        </span>
    </div>
    <hr>
    <div class="userManagement_box"></div>
</div>

<script id="userManagementList_template" type="text/html">
    <div style="text-align: left;">
        <form class="layui-form" lay-filter="searchForm" action="">
            <div class="layui-inline">
                <!--<label class="layui-form-label">姓名</label>-->
                <div class="layui-input-inline">
                    <input name="fullnameInput" type="text" placeholder="姓名" class="layui-input" style="width:200px;">
                </div>
            </div>
            <div class="layui-inline">
                &nbsp;&nbsp;
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="searchBtn">查询</button>
                <button class="layui-btn layui-btn-normal" id="addBtn">添加</button>
            </div>
        </form>
    </div>

    <div style="width:100%">
        <table id="tb_list" lay-filter="tb_list" style="width:100%"></table>
    </div>
</script>

<script type="text/html" id="toolbar">
    <a class="layui-btn layui-btn-xs" lay-event="editBtn">编辑</a>
    <a class="layui-btn layui-btn-xs" lay-event="perBtn">角色授权</a>
    <a class="layui-btn layui-btn-xs" lay-event="showPer">显示权限</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deleteBtn">删除</a>
</script>

<script id="userManagementForm_template" type="text/html">
    <form class="layui-form" action="">
    <div class="layui-tab-item layui-show" style="width:652px;margin: 0 auto;">
        <input type="hidden" id="id" value="{{id}}" lay-verify="id">
        <div class="layui-input-inline" style="float: left">
            <div class="layui-col-xs6">
                <label class="layui-form-label">头像</label>
                <div class="layui-input-block">
                    <img style="width: 100px;height: 100px" src="${fileServerPath}/{{unitFile&&unitFile.sourceUrl}}" id="test_imgUpload2Preview">
                </div>
                <br>
                <div class="layui-input-block" style="width:205px;margin-bottom: 10px;">
                    <button type="button" class="layui-btn" id="test_imgUpload2">选择图片</button>
                </div>
            </div>
        </div>
            <div class="layui-form-item">
                <div class="layui-inline" id="username_div">
                    <label class="layui-form-label">账号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="username" name="username"  lay-verify="username" placeholder="请输入账号" autocomplete="off" class="layui-input" value="{{user&&user.username}}" />
                    </div>
                </div>
                <div class="layui-inline" id="pswd_div">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-inline">
                        <input type="password" id="pswd" name="pswd"  lay-verify="pswd" placeholder="请输入密码" autocomplete="off" class="layui-input" />
                    </div>
                </div>
             </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" id="fullname" name="fullname"  lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input" value="{{user&&user.fullname}}">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">电话</label>
                    <div class="layui-input-inline">
                        <input type="text" id="phone" name="phone"  lay-verify="phone" placeholder="请输入电话" autocomplete="off" class="layui-input" value="{{user&&user.phone}}">
                    </div>
                </div>
            </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">电子邮箱</label>
                    <div class="layui-input-inline">
                        <input style="width:512px;" type="text" id="email" name="email" lay-verify="email" placeholder="请输入电子邮箱" autocomplete="off" class="layui-input" value="{{user&&user.email}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-inline">
                        <input style="width:512px;" type="text" id="orderId" name="orderId" lay-verify="number" placeholder="请输入排序号" autocomplete="off" class="layui-input" value="{{user&&user.orderId}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">说明</label>
                    <div class="layui-input-block">
                        <textarea style="width:512px;" placeholder="请输入内容" id="comment" name="comment" class="layui-textarea">{{user&&user.comment}}</textarea>
                    </div>
                </div>
        <br>
        <div class="layui-form-item">
        <div class="layui-inline" style="margin-left: 225px;width:182px;">
            <button class="layui-btn layui-btn-normal" lay-submit="" id="saveBtn" lay-filter="submitBtn">提交</button>
            <button class="layui-btn layui-btn-normal" id="cancel">取消</button>
        </div>
        </div>
    </div>
    </form>
</script>
<!--角色授权页-->
<script id="userManagerList_role" type="text/html">
    <div id="roLog" style="margin: 10px;">
    </div>
    <div style="text-align: left;margin: 10px;">
        <form class="layui-form" lay-filter="searchRoleForm" action="">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input name="roleName" type="text" placeholder="角色名称" class="layui-input" style="width:200px;">
                </div>
            </div>
            <div class="layui-inline">
                &nbsp;&nbsp;
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="searchRole">查询</button>
                <button class="layui-btn layui-btn-normal" id="getCheckData" data-type="getCheckData">提交</button>
            </div>
        </form>
    </div>
    <div style="margin: 10px;">
        <table id="ro_list" lay-filter="ro_list" ></table>
    </div>
</script>
<!--权限显示页-->
<script id="userManagerList_per" type="text/html">
    <div style="text-align:left;margin:10px;height: 700px" id="treePer">
    </div>
    <div style="margin:10px;">
        <table id="per_list" lay-filter="ro_list"></table>
    </div>
</script>